<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.List"%>
<%
	Locale.setDefault(Locale.CHINA);
	Calendar calendar = Calendar.getInstance();
	SimpleDateFormat fomat = new SimpleDateFormat("yyyy年MM月dd日 EEEE");
	String dateShow = fomat.format(calendar.getTime());
%>

<div class="top">
    <div class="top_r">
	  <div class="welcome" id="welcomeDiv"><span class="">HI,${currentUser.userCnName}【${currentUser.username}】</span>
	  <i class="t_name1"></i>
	  <i class="w_arrow1"></i></div>
      <div class="t_action" id="action">
	    <ul>
		  <li><a class="logout"><i class="t_set"></i></a></li>
		</ul>
	  </div>
    </div>
  	<div style="font-family: 楷体;font-size: 35px;margin-top: 10px;margin-left: 10px;"><b>云算盘</b></div>
 </div>
 <script type="text/javascript">
		$(function () {
			$("#action").delegate(".logout", "click", function () {
				if (confirm('确定退出？')) {
					$.post("${ctx}/login/logout", function (result) {
						if ("succ" == result) {
							self.location.replace("${ctx}/login/toLogin");
						} else {
							alert("操作失败");
						}
					}, "json");
				}
			});
		});
</script>